/** @type {import('tailwindcss').Config} */

export default {
  darkMode: "class",
  content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
  theme: {
    container: {
      center: true,
      padding: {
        DEFAULT: "1rem",
        sm: "2rem",
        lg: "4rem",
        xl: "5rem",
        "2xl": "6rem",
      },
    },
    extend: {
      colors: {
        // 绘本岛品牌色彩
        primary: {
          50: "#fefcf8",
          100: "#fef8f0",
          200: "#fde8d0",
          300: "#fbd8a0",
          400: "#f8c870",
          500: "#f5b840",
          600: "#e5a830",
          700: "#d59820",
          800: "#c58810",
          900: "#b57800",
        },
        secondary: {
          50: "#fff9e6",
          100: "#fff2cc",
          200: "#ffe699",
          300: "#ffd966",
          400: "#ffcc33",
          500: "#ffbf00",
          600: "#e6ac00",
          700: "#cc9900",
          800: "#b38600",
          900: "#997300",
        },
        accent: {
          50: "#f0f9ff",
          100: "#e0f2fe",
          200: "#bae6fd",
          300: "#7dd3fc",
          400: "#38bdf8",
          500: "#0ea5e9",
          600: "#0284c7",
          700: "#0369a1",
          800: "#075985",
          900: "#0c4a6e",
        },
        warm: {
          50: "#fefcf8",
          100: "#fef8f0",
          200: "#fdf0e0",
          300: "#fce8d0",
          400: "#fbe0c0",
          500: "#fad8b0",
          600: "#e9c8a0",
          700: "#d8b890",
          800: "#c7a880",
          900: "#b69870",
        },
      },
      fontFamily: {
        sans: ["PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "system-ui", "sans-serif"],
      },
      borderRadius: {
        "4xl": "2rem",
        "5xl": "2.5rem",
      },
      animation: {
        "float": "float 3s ease-in-out infinite",
        "pulse-soft": "pulse-soft 2s ease-in-out infinite",
      },
      keyframes: {
        float: {
          "0%, 100%": { transform: "translateY(0px)" },
          "50%": { transform: "translateY(-10px)" },
        },
        "pulse-soft": {
          "0%, 100%": { opacity: "1" },
          "50%": { opacity: "0.8" },
        },
      },
    },
  },
  plugins: [],
};
